package com.qijian.flowable.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.annotation.JoinField;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 流程明细对象 main_flow_detail
 *
 * @author qijian
 * @date 2024-03-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_flow_detail")
public class FlowDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    @Excel(name = "主表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    @JoinField
    private Long mainId;

    @Excel(name = "来源id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "来源id")
    private Long sourceId;

    @Excel(name = "数据json")
    @ApiModelProperty(value = "数据json")
    private String dataJson;

    @Excel(name = "旧数据json")
    @ApiModelProperty(value = "旧数据json")
    private String oldJson;

    @Excel(name = "数据类型")
    @ApiModelProperty(value = "数据类型")
    private String classType;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    private BigDecimal quantity;

    private String name;

    private String spec;

    private String extra;

    @TableField(exist = false)
    private String content;

    @TableField(exist = false)
    private String contentType;

}
